<template>
  <div>
    <button @click="onChange">change</button>
  </div>
</template>

<script setup lang="ts">
import bro1 from "../Test/bro1.vue";
import bro2 from "../Test/bro2.vue";

const onChange = () => {
  location.hash = "#/bro2";
};

window.addEventListener("hashchange", () => {
  console.log(location.hash);
});
</script>

<style lang="scss" scoped></style>
